package com.bwie.system.controller;

import com.bwie.common.domain.Type;
import com.bwie.common.result.Result;
import com.bwie.system.service.TypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author：贾维斯
 * @Description: 描述
 * @name：TypeController
 * @Date：2024/11/4 10:49
 */
@RestController
public class TypeController {
    @Autowired
    private TypeService typeService;

    @GetMapping("/findAllType")
    public Result<List<Type>> findAllType() {
       List<Type> list =  typeService.findAllType();
        return Result.success(list);
    }
}
